import  turtle
turtle.title('长方体')
n = 300  # 边长

# 前侧
turtle.begin_fill()
for i in range(4):
    turtle.forward(n)
    turtle.right(90)


# 上方
turtle.left(55)
turtle.forward(n*0.6)
turtle.right(55)
turtle.forward(n)
turtle.right(125)
turtle.forward(n*0.6)


# 右侧面
turtle.penup()
turtle.goto(n, -n)
turtle.pendown()
turtle.left(180)
turtle.forward(n*0.6)
turtle.left(35)
turtle.forward(n)

# 后侧
turtle.penup()
turtle.goto(n, -n)
turtle.pendown()
turtle.right(35)
turtle.forward(n*0.6)
turtle.left(125)
turtle.forward(n)
turtle.right(90)
turtle.forward(n)

# 底面
turtle.penup()
turtle.goto(n, -n)
turtle.pendown()
turtle.right(35)
turtle.forward(n*0.6)
turtle.left(125)
turtle.forward(n)
# 要记得正方体的侧边是垂直于底面的啊
turtle.left(55)
turtle.forward(n*0.6)

turtle.showturtle()
turtle.done()
